package models

// https://gorm.io/zh_CN/docs/models.html

// AppCardCharge 就诊卡充值记录
type AppCardCharge struct {
	ID     int64   `gorm:"primaryKey;autoIncrement;not null"`
	CardID int64   `gorm:"not null; index;"`
	UserID int64   `gorm:"not null; index;"`
	TopAdd float64 `gorm:"not null; default: 0; comment: 充值金额"`

	PayFlag int64  `gorm:"not null;default:1;comment:支付判别"`
	PayInfo string `gorm:"not null;comment:支付详情"`

	BaseModel
}

func (AppCardCharge) TableName() string {
	return "app_card_charge"
}
